package fr.lox.fall.common;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class Map {
	
	private Texture _leftSide, _rightSide;
	private Player p;
	private float ratioX = 0f, ratioY = 0f;
	
	public Map()
	{
		this._leftSide = new Texture(Gdx.files.internal("images/map/leftSide.png"));
		this._rightSide = new Texture(Gdx.files.internal("images/map/leftSide.png"));

	}
	
	public void scrolling()
	{
		
	}
	
	public void update()
	{
		
	}
	
	public void resize(int width, int height)
	{
		this.ratioX = width * 0.35f;
		this.ratioY = height * 0.8f;
	}
	
	public void draw(SpriteBatch batch)
	{
		batch.draw(_leftSide, 0 - ratioX * 0.5f, 0, ratioX, ratioY);
		batch.draw(_rightSide, Gdx.graphics.getWidth() - ratioX * 0.5f, 0, ratioX, ratioY);
	}

}
